//@ts-ignore
import * as lib from "liblz77.so";

function compress(data: Uint8Array): ArrayBuffer {
  return lib.compress(data);
}

function decompress(data: Uint8Array): ArrayBuffer {
  return lib.decompress(data);
}

export { compress, decompress };
